import React from 'react';

export default function UseRef() {
  const divRef = React.useRef(null);

  React.useEffect(() => {
    console.log(divRef.current); // div
  }, []);

  return <div ref={divRef}>useRef</div>;
}
